<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{courseController.selected.courseName}" rendered="#{localeHelper.englishSet}" />
            <h:outputText value="#{courseController.selected.courseNameNo}" rendered="#{localeHelper.norwegianSet}" />
        </ui:define>
        <ui:define name="content">
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.courseCode}:" />
                    <h:outputText value="#{courseController.selected.courseCode}" title="#{bundle.courseCode}" />
                    <h:outputText value="#{bundle.name}:" />
                    <h:outputText value="#{courseController.selected.courseName}" title="#{bundle.name}" rendered="#{localeHelper.englishSet}" />
                    <h:outputText value="#{courseController.selected.courseNameNo}" title="#{bundle.name}" rendered="#{localeHelper.norwegianSet}" />
                    <h:outputText value="#{bundle.ectsCredits}:" />
                    <h:outputText value="#{courseController.selected.ectsCredits}" title="#{bundle.ectsCredits}" />
                    <h:outputText value="#{bundle.semester}:" />
                    <h:outputText value="#{courseController.semesterString}" title="#{bundle.semester}" />
                    <h:outputText value="#{bundle.courseLanguage}:" />
                    <h:outputText value="#{courseController.courseLanguageString}" title="#{bundle.courseLanguage}" />
                    <h:outputText value="#{bundle.previousKnowledge}:" />
                    <h:outputText value="#{courseController.selected.previousKnowledge}" title="#{bundle.previousKnowledge}" rendered="#{localeHelper.englishSet}" />
                    <h:outputText value="#{courseController.selected.previousKnowledgeNo}" title="#{bundle.previousKnowledge}" rendered="#{localeHelper.norwegianSet}" />
                    <h:outputText value="#{bundle.outcomes}:" />
                    <h:panelGroup layout="block">
                        <h:outputText value="#{bundle.outcomeType1}" />
                        <h:dataTable value="#{courseController.knowledgeOutcomes}" var="outcome">
                            <h:column>
                                <h:outputText value="#{outcome.text}" rendered="#{localeHelper.englishSet}" />
                                <h:outputText value="#{outcome.textNo}" rendered="#{localeHelper.norwegianSet}" />
                            </h:column>
                        </h:dataTable>
                        <h:outputText value="#{bundle.outcomeType2}" />
                        <h:dataTable value="#{courseController.skillOutcomes}" var="outcome">
                            <h:column>
                                <h:outputText value="#{outcome.text}" rendered="#{localeHelper.englishSet}" />
                                <h:outputText value="#{outcome.textNo}" rendered="#{localeHelper.norwegianSet}" />
                            </h:column>
                        </h:dataTable>
                        <h:outputText value="#{bundle.outcomeType3}" />
                        <h:dataTable value="#{courseController.generalOutcomes}" var="outcome">
                            <h:column>
                                <h:outputText value="#{outcome.text}" rendered="#{localeHelper.englishSet}" />
                                <h:outputText value="#{outcome.textNo}" rendered="#{localeHelper.norwegianSet}" />
                            </h:column>
                        </h:dataTable>
                    </h:panelGroup>
                    <h:outputText value="#{bundle.courseContent}:" />
                    <h:outputText value="#{courseController.selected.courseContent}" title="#{bundle.courseContent}" rendered="#{localeHelper.englishSet}" />
                    <h:outputText value="#{courseController.selected.courseContentNo}" title="#{bundle.courseContent}" rendered="#{localeHelper.norwegianSet}" />
                    <h:outputText value="#{bundle.studyActivities}:" />
                    <h:outputText value="#{courseController.selected.studyActivities}" title="#{bundle.studyActivities}" rendered="#{localeHelper.englishSet}" />
                    <h:outputText value="#{courseController.selected.studyActivitiesNo}" title="#{bundle.studyActivities}" rendered="#{localeHelper.norwegianSet}" />
                    <h:outputText value="#{bundle.formOfAssessment}:" />
                    <h:outputText value="#{courseController.selected.formOfAssessment}" title="#{bundle.formOfAssessment}" rendered="#{localeHelper.englishSet}" />
                    <h:outputText value="#{courseController.selected.formOfAssessmentNo}" title="#{bundle.formOfAssessment}" rendered="#{localeHelper.norwegianSet}" />
                    <h:outputText value="#{bundle.resitRequirements}:" />
                    <h:outputText value="#{courseController.selected.resitRequirements}" title="#{bundle.resitRequirements}" rendered="#{localeHelper.englishSet}" />
                    <h:outputText value="#{courseController.selected.resitRequirementsNo}" title="#{bundle.resitRequirements}" rendered="#{localeHelper.norwegianSet}" />
                    <h:outputText value="#{bundle.supportMaterial}:" />
                    <h:outputText value="#{courseController.selected.supportMaterial}" title="#{bundle.supportMaterial}" rendered="#{localeHelper.englishSet}" />
                    <h:outputText value="#{courseController.selected.supportMaterialNo}" title="#{bundle.supportMaterial}" rendered="#{localeHelper.norwegianSet}" />
                    <h:outputText value="#{bundle.courseworkRequirements}:" />
                    <h:outputText value="#{courseController.selected.courseworkRequirements}" title="#{bundle.courseworkRequirements}" rendered="#{localeHelper.englishSet}" />
                    <h:outputText value="#{courseController.selected.courseworkRequirementsNo}" title="#{bundle.courseworkRequirements}" rendered="#{localeHelper.norwegianSet}" />
                    <h:outputText value="#{bundle.readingList}:" />
                    <h:outputText value="#{courseController.selected.readingList}" title="#{bundle.readingList}" />
                    <h:outputText value="#{bundle.faculty}:" />
                    <h:outputText value="#{courseController.selected.faculty.facultyName}" title="#{bundle.faculty}" rendered="#{localeHelper.englishSet}" />
                    <h:outputText value="#{courseController.selected.faculty.facultyNameNo}" title="#{bundle.faculty}" rendered="#{localeHelper.norwegianSet}" />
                </h:panelGrid>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
